<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf</title>
</head>
<body>
    <table>
        <tr>
            <th>ID</th>
            <th>名称</th>
        </tr>
        <tr th:each="dept:${allDept}">
            <td th:text="${dept}"></td>
        </tr>
    </table>
</body>
</html>